package com.jrh.dal;

import java.util.List;

import com.jrh.domain.entity.FeatureValue;

public class FeatureValueDao extends BaseDao<FeatureValue> {

    public FeatureValueDao(){
        this.namespace = "jrh.single.feature.value";
    }

    @SuppressWarnings("unchecked")
    public List<FeatureValue> listFeatureValueByFeatureId(long featureId) {
        List<FeatureValue> featureValues = (List<FeatureValue>) sqlMapClientTemplate.queryForList(namespace
                                                                                                          + ".listFeatureValueByFeatureId",
                                                                                                  featureId);
        return featureValues;
    }

    public void deleteFeatureValueByFeatureId(long featureId) {
        sqlMapClientTemplate.delete(namespace + ".deleteFeatureValueByFeatureId", featureId);
    }

}
